package com.ruoyi.stock.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存管理对象 sys_stock
 * 
 * @author xyt
 * @date 2022-06-07
 */
public class SysStock extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存编号 */
    private Long stockId;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Long stockNum;

    /** 物品编号 */
    @Excel(name = "物品编号")
    private Long stockCommodityId;

    public void setStockId(Long stockId) 
    {
        this.stockId = stockId;
    }

    public Long getStockId() 
    {
        return stockId;
    }
    public void setStockNum(Long stockNum) 
    {
        this.stockNum = stockNum;
    }

    public Long getStockNum() 
    {
        return stockNum;
    }
    public void setStockCommodityId(Long stockCommodityId) 
    {
        this.stockCommodityId = stockCommodityId;
    }

    public Long getStockCommodityId() 
    {
        return stockCommodityId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("stockId", getStockId())
            .append("stockNum", getStockNum())
            .append("stockCommodityId", getStockCommodityId())
            .toString();
    }
}
